package com.weipai.springboot.module.dao;

import com.weipai.springboot.model.Storage;

import java.util.List;
import java.util.Map;

/**
 * @Author: 曹朋飞
 * @Date: 2018/09/15 10:02
 */
public interface StorageDao {
    int insertSelective(Storage storage);

    Storage getStorageById(String storageId);

    List<Storage> selectAllByStorageDel(int del, String search, String sort, String way);

    int batchDeleteById(String[] id);

    int updateByPrimaryKeySelective(Storage storage);

    int updateByPrimaryKey(Storage storage);

    int updateStatus(String storageId, Integer status);

    List<Map<String,Object>> listNoGoods(String storageId, Integer start, Integer size);

    Integer countNoGoods(String storageId);

    //根据位置定位仓库
    Map<String,Object> locateStorage(String longitude, String latitude);

    List<Map<String,Object>> getStorage();
}
